<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
  body{
    margin: 0;
  }
  div{
    height: 100px;
  }
  .container{
    width: 100vw;
    display:flex;
  }
  .main{
    background: red;
    flex-grow: 1;
    order: 2;
  }
  .left{
    background: #000;
    width: 200px;
    order: 1;
  }
  .right{
    background: blue;
    width: 200px;
    order: 3;
  }
  .top, .bottom {
    width: 100%;
    height: 100px;
    background-color: yellowgreen;
  }
</style>
<body>
<!--圣杯布局要做到左右宽度固定，中间宽度自适应 上下固定-->
<div class="top"></div>
<div class="container">

  <div class="main"></div>
  <div class="left"></div>
  <div class="right"></div>

</div>
<div class="bottom"></div>
</body>
</html>
